package com.xyoto.takeawayBusiness.enums;

/**
 * 经营品类枚举
 *
 * @author Administrator
 */
public enum CategoryEnum implements Code {

    CATEGORY_NOT_EXIST(6300, "经营品类不存在"),
    SAVE_CATEGORY_FAILED(6301, "新增经营品类失败"),
    UPDATE_CATEGORY_FAILED(6302, "修改经营品类失败")
    ;

    private int code;
    private String msg;

    CategoryEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }


    @Override
    public int code() {
        return this.code;
    }

    @Override
    public String msg() {
        return this.msg;
    }

}
